<template>
  <j-modal :title="title" :fullscreen="true" :visible="visible" :maskClosable="false" @close="close" destroyOnClose>
    <h3>验工计价</h3>
    <TbaleCom :list="list1" :columns="columns1" :param="queryParam" />
    <h3>详情</h3>
    <TbaleCom :list="list2" :columns="columns2" :param="queryParam" />
  </j-modal>
</template>

<script>
import TbaleCom from '@/views/sj/sjmxgl/cwzb/gcxmsjykd/TbaleCom'
import { columns1, columns2 } from './checkColumns.js'
export default {
  name: 'ProjectQualityDetails',
  components: { TbaleCom },
  data() {
    return {
      queryParam: {
        orgId: '',
        startTime: '',
        endTime: '',
        direction: undefined
      },
      visible: false,
      title: '详情列表',
      list1: '/sjmx/getEavInfoByOrgId',
      list2: '/sjmx/getBalanceInfoByOrgId',
      columns1: columns1(),
      columns2: columns2()
    }
  },
  methods: {
    close() {
      this.visible = false
    },
    edit(param, record, time) {
      delete param.endTime
      delete param.startTime
      delete param.arrayTime
      // acc_year   年份、subject_name 科目名称、money  原币金额、org_nm  单位名称
      this.queryParam = Object.assign({}, param, { time ,lineNum:record.line_num })
      this.visible = true
    }
  }
}
</script>

<style lang="less" scoped>
@import '~@assets/less/tableTheme.less';
</style>
